package com.translate.web.service;

import java.util.List;
import java.util.function.Function;

import com.translate.entity.CustomerFollowPerson;
import com.basic.service.contract.IBaseService;

/**
 * 跟进客户服务
 * @author 111
 */
public interface ICustomerFollowPersonService extends IBaseService<CustomerFollowPerson>{

	/**
	 * 添加跟进人
	 * @param customerId
	 * @param followId
	 * @return
	 */
	int addFollowPerson(int customerId, long followId);
	
	/**
	 * 获取跟进人id数组
	 * @param <VO>
	 * @return
	 */
	public Integer[] getFollowPerson(int customerId) ;
	
	/**
	 * 获取跟进者
	 * @return
	 */
	<S> List<CustomerFollowPerson> getCustomerFollowPersons(List<S> list, Function<S, Integer> function); 
}
